package com.bocai.kelalacar.ui.car.set.act;

import android.support.v7.widget.AppCompatButton;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;


import com.bocai.kelalacar.R;
import com.bocai.kelalacar.base.BaseActivity;
import com.bocai.kelalacar.util.SP;

import butterknife.BindView;
import butterknife.OnClick;

/**
 * Created by yuanfei on 2017/6/12.
 */

public class  ChangePhoneActivity extends BaseActivity {
    @BindView(R.id.img_back)
    ImageView imgBack;
    @BindView(R.id.tv_title)
    TextView tvTitle;
    @BindView(R.id.right_btn)
    Button rightBtn;
    @BindView(R.id.toolbar)
    Toolbar toolbar;
    @BindView(R.id.tv_phone)
    TextView tvPhone;
    @BindView(R.id.btn_change)
    AppCompatButton btnChange;
    @BindView(R.id.ll_back)
    LinearLayout llBack;

    @Override
    public int getLayoutId() {
        return R.layout.act_change_phone;
    }

    @Override
    public void initPresenter() {

    }

    @Override
    public void initView() {
        initToolbar("修改手机号");
        initBack(imgBack,llBack);
        tvPhone.setText(SP.get(this,"PhoneNumber","").toString());
    }
    @OnClick({R.id.btn_change})
    public void OnClick(View view){
        switch (view.getId()){
            case R.id.btn_change:
                startActivity(ChangePhoneTwoActivity.class);
                break;
        }
    }
}
